<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡的基本属性</title>
    <style>
        .box1{
            width: 200px;
            height: 300px;
        
            perspective: 300px;
            margin: auto;
        }
        div .box2{
            width: 200px;
            height: 300px;
            background-color: pink;
            margin: 0 auto;
            transform: rotateX(30deg);
            transition: all 0.5s linear 0s;
        }
        div .box2:hover{
            background-color: orange;
            transform: rotateX(0deg);
        }
    </style>
</head>
<body>
    <div class="box1">
    <div class="box2"></div></div>
</body>
</html>